<?php if ( !empty($post->post_password) && $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) : ?>
<p>这篇文章受密码保护。输入密码以查看评论。</p>
<?php return; endif; ?>

<?php if ( $comments ) : ?>
<h3>评论</h3>
<?php $i=1; foreach ($comments as $comment) : ?>

<div class="comment">
 <div style="float:right" align="right"> <font size=4><?php echo $i++; ?></font>&nbsp;</div>

<p class="commenticon">
<strong><?php comment_type('评论','Trackback','Pingback'); ?></strong> 从 <strong><?php if ('' != get_comment_author_url()) { ?><a href="<?php comment_author_url(); ?>"><?php comment_author() ?></a><?php } else { comment_author(); } ?></strong>
<?php edit_comment_link('编辑评论',' | '); ?><br />
<strong>时间:</strong> <?php comment_date() ?>, <?php comment_time(); ?>
<?php  if(function_exists('ck_display_karma'))  ck_display_karma();?>

</p>
<?php comment_text() ?>

<?php if ($comment->comment_approved == '0') : ?>
<p><strong>您的评论正等待审核。</strong></p>
<?php endif; ?>
</div>

<?php endforeach; ?>
<?php endif; ?>
<?php if ( comments_open() ) : ?>
<?php endif; ?>

<?php if ( comments_open() ) : ?>
<div id="commentsection">
<h3>发表一条评论</h3>
<form action="<?php echo get_settings('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<p><label for="author">姓名:</label><br />
<input type="text" name="author" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="28" tabindex="1" /><input type="hidden" name="comment_post_ID" value="<?php echo $post->ID; ?>" />
<input type="hidden" name="redirect_to" value="<?php echo wp_specialchars($_SERVER['REQUEST_URI']); ?>" /></p>
<p><label for="email">E-mail:</label><br /><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="28" tabindex="2" /></p>
<p><label for="url">网站:</label><br /><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="28" tabindex="3" /></p>
<p><label for="comment">您的评论:</label><br />
<textarea name="comment" id="comment" cols="50" rows="7" tabindex="4"></textarea></p>
<p><input name="submit" id="submit" type="submit" tabindex="5" value="提交" /></p>
<?php do_action('comment_form', $post->ID); ?></form>
</div>

<?php else : // Comments are closed ?>
<?php endif; ?>
